﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UM_SERVER.Triggers
{
    /// <summary>
    ///     所有触发器基类
    /// </summary>
    public abstract class BaseTrigger : ITrigger, IMetaData
    {
        public BaseTrigger(String Key)
        {
            this.key = Key;
        }

        #region IMetaData 成员

        private String key;
        public string Key
        {
            get
            {
                return key;
            }
            set
            {
                key = value;
            }
        }

        #endregion

        #region ITrigger 成员

        public abstract void Trigger();

        #endregion
    }
}
